//
//  SC_Table_VM.swift
//  APSwift
//
//  Created by jianbo.pei on 2023/4/6.
//

import UIKit

class SC_Table_VM: VMBaseTableVM {

    private var titles: [String] = []
    public weak var tableView: UITableView?
        
    func loadDatas() {
        titles = ["Demo1", "Demo2", "Demo3"]
//        var datas: [VMReuseView_M_Protocol] = []
        var datas: [SC_Table_Model] = []
        for title in titles {
            var cellM = SC_Table_Model()
            cellM.title = title
            datas.append(cellM)
        }
        self.datasOfCell = datas
        tableView?.reloadData()
    }
}
